﻿package com.moonshineproject.plugin.mxmlc {
	import flash.events.Event;
	import flash.filesystem.File;
	
	/**
	 * ...
	 * @author SmilyOrg
	 */
	public class MXMLCPluginEvent extends Event {
		public static const BUILD_AND_RUN:String = "mxmlcBuildAndRun";
		public static const BUILD:String = "mxmlcBuild";
		public static const PREBUILD:String = "mxmlcPrebuild";
		public static const POSTBUILD:String = "mxmlcPostbuild";
		
		public var sdk:File;
		public function MXMLCPluginEvent(type:String, sdk:File = null, bubbles:Boolean=false, cancelable:Boolean=false) { 
			super(type, bubbles, cancelable);
			this.sdk = sdk;
		} 
		
		public override function clone():Event { 
			return new MXMLCPluginEvent(type, sdk, bubbles, cancelable);
		} 
		
		public override function toString():String { 
			return formatToString("MXMLCPluginEvent", "type", "bubbles", "cancelable", "eventPhase"); 
		}
		
	}
	
}